package cn.lyn4ever.cataccount.service.impl;

import cn.lyn4ever.cataccount.entity.IconSysPath;
import cn.lyn4ever.cataccount.mapper.IConSysPathMapper;
import cn.lyn4ever.cataccount.service.IconSysPathService;
import cn.lyn4ever.common.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (IconSysPath)表服务实现类
 *
 * @author makejava
 * @since 2019-09-21 16:56:57
 */
@Service("iconSysPathService")
public class IconSysPathServiceImpl implements IconSysPathService {

    @Resource
    IConSysPathMapper iConSysPathMapper;


    /**
     * 查询所有的icon
     *
     * @return
     */
    @Override
    public R list() {

        List<IconSysPath> list = iConSysPathMapper.list();
        if(null!=list && list.size()>0){
            return R.sucess().setData(list);
        }

        return R.fail("暂时没有系统图标");
    }
}